import Router from "koa-router";
import userController from "./userController.js";

const router = Router({
  prefix: '/user'
})


router.post('/add', userController.addUser);

router.post('/del', userController.delUser);

router.post('/get', userController.getUser);
//原始查询(使用sql)
router.post('/getByOrg', userController.getUserByOrg);
//更新
router.post('/updateById', userController.updateUserById);
//表关联查询和角色表关联查询
router.post('/getUserAndRoleName', userController.getUserAndRoleName);
export default router;